package com.xiaoshuidi.cloud.module.system.api.user;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;

import com.xiaoshuidi.cloud.module.system.api.user.dto.CustomerUserRespDTO;
import com.xiaoshuidi.cloud.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import javax.validation.Valid;

@FeignClient(name = ApiConstants.NAME) // TODO 芋艿：fallbackFactory =
@Tag(name = "RPC 服务 - 租客端用户")
public interface CustomerUserApi {

    String PREFIX = ApiConstants.PREFIX + "/customer";

    @PostMapping(PREFIX + "/push-information-to-center")
    @Operation(summary = "推送用户信息到用户中心")
    CommonResult<Long> pushInformationToCenter(@Valid @RequestBody CustomerUserRespDTO customerUserRespDTO);
}
